<?php
require_once 'init.php';

$result=Gateway::excute('user','IndexProxy');
if(isset($result['ikylin']) && $result['ikylin']==Gateway::Unauthorized){
	header('Location: /auth/login.php');
	exit;
}
$view=CoreFactory::view();
$view->hello='Hello world, ikylin framework';
$view->aUser=$result['user'];
$view->render('index');
